/*************************************************************************
    > File Name: code.c
    > Author: ma6174
    > Mail: ma6174@163.com 
    > Created Time: Wed 29 Oct 2025 03:44:30 PM CST
 ************************************************************************/

#include<stdio.h>
#include <string.h>

// code -opt1/-opt2/-opt3
int main(int argc,char* argv[])
{
	if(argc != 2)
	{
		printf("Usage: code opt\n");
		return 1;
	}

	if(strcmp(argv[1], "-opt1") == 0)
	{
		printf("功能1\n");
	}
	else if(strcmp(argv[1], "-opt2") == 0)
	{
		printf("功能2\n");
	}
	else if(strcmp(argv[1], "-opt3") == 0)
	{
		printf("功能3\n");
	}
	else
	{
		printf("默认功能\n");
	}

	return 0;
}

